/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.caresms.service.http.Category_MasterServiceSoap}.
 *
 * @author    cc
 * @see       com.caresms.service.http.Category_MasterServiceSoap
 * @generated
 */
public class Category_MasterSoap implements Serializable {
	public static Category_MasterSoap toSoapModel(Category_Master model) {
		Category_MasterSoap soapModel = new Category_MasterSoap();

		soapModel.setCatId(model.getCatId());
		soapModel.setCountryId(model.getCountryId());
		soapModel.setCatName(model.getCatName());
		soapModel.setIsActive(model.getIsActive());
		soapModel.setCountsms(model.getCountsms());
		soapModel.setField1(model.getField1());
		soapModel.setField2(model.getField2());
		soapModel.setField3(model.getField3());
		soapModel.setField4(model.getField4());
		soapModel.setField5(model.getField5());

		return soapModel;
	}

	public static Category_MasterSoap[] toSoapModels(Category_Master[] models) {
		Category_MasterSoap[] soapModels = new Category_MasterSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Category_MasterSoap[][] toSoapModels(
		Category_Master[][] models) {
		Category_MasterSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Category_MasterSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Category_MasterSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Category_MasterSoap[] toSoapModels(
		List<Category_Master> models) {
		List<Category_MasterSoap> soapModels = new ArrayList<Category_MasterSoap>(models.size());

		for (Category_Master model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Category_MasterSoap[soapModels.size()]);
	}

	public Category_MasterSoap() {
	}

	public long getPrimaryKey() {
		return _CatId;
	}

	public void setPrimaryKey(long pk) {
		setCatId(pk);
	}

	public long getCatId() {
		return _CatId;
	}

	public void setCatId(long CatId) {
		_CatId = CatId;
	}

	public long getCountryId() {
		return _countryId;
	}

	public void setCountryId(long countryId) {
		_countryId = countryId;
	}

	public String getCatName() {
		return _CatName;
	}

	public void setCatName(String CatName) {
		_CatName = CatName;
	}

	public boolean getIsActive() {
		return _isActive;
	}

	public boolean isIsActive() {
		return _isActive;
	}

	public void setIsActive(boolean isActive) {
		_isActive = isActive;
	}

	public int getCountsms() {
		return _countsms;
	}

	public void setCountsms(int countsms) {
		_countsms = countsms;
	}

	public String getField1() {
		return _field1;
	}

	public void setField1(String field1) {
		_field1 = field1;
	}

	public boolean getField2() {
		return _field2;
	}

	public boolean isField2() {
		return _field2;
	}

	public void setField2(boolean field2) {
		_field2 = field2;
	}

	public int getField3() {
		return _field3;
	}

	public void setField3(int field3) {
		_field3 = field3;
	}

	public Date getField4() {
		return _field4;
	}

	public void setField4(Date field4) {
		_field4 = field4;
	}

	public String getField5() {
		return _field5;
	}

	public void setField5(String field5) {
		_field5 = field5;
	}

	private long _CatId;
	private long _countryId;
	private String _CatName;
	private boolean _isActive;
	private int _countsms;
	private String _field1;
	private boolean _field2;
	private int _field3;
	private Date _field4;
	private String _field5;
}